package com.lyrcsoft.service;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Component;

/**
 * @author fujc-dev@qq.com
 * @version 1.0
 */
@Component
public class SmartInitializingSingletonService implements SmartInitializingSingleton {

    @Override
    public void afterSingletonsInstantiated() {
        // 容器里面所有的非懒加载的单例Bean创建完成之后，调用
        System.out.println("afterSingletonsInstantiated");
    }

    public void test() {
        System.out.println("SmartInitializingSingletonService.test()");
    }
}
